# a = "input('请输入你的名字：')"
# print(a)
#
# print(eval(a))


# import json
# person = {"name":"allen",'age':18,"gender":"female"}
# print(person)
# print(type(person))
# print("======================")
# m = json.dumps(person)
# print(m)
# print(type(m))
#
# print("======================")
# a = json.loads(m)
# print(a)
# print(tupe(a))


# age = int(input("请输入你的年龄："))
# if age < 3:
#     for i in range(3):
#         print("小兔子乖乖")
#         print("把门开开")
# elif age >=3 and age <= 5:
#     print("小兔子乖乖")
#     print("把门开开")


# def xtz():
#     print("小兔子乖乖")
#     print("把门开开")
#
# age = int(input("请输入你的年龄："))
# if age < 3:
#     for i in range(3):
#        xtz()
# elif age >=3 and age <= 5:
#     xtz()


#============================没有形参，没有返回值===================
# def stuinfo():
#     print("我们是QC5正在学习...")
#
# stuinfo()

#===========================有形参没有返回值=====================
# def stuinfo2(cls:str):
#
#     if cls == 'qc4':
#         print("已经全部就业")
#     elif cls == 'qc5':
#         print("正在学习自动化测试")
#     elif cls == 'qc6':
#         print("正在学习测试基础")
#
# stuinfo2('qc5')

#不定长参数 *args
# def info(name: int, *args):
#     print(name)
#     print(args)
#
# info(11,22,[11,22],{'name':'张三'},(11,22,33),{55,66,7},1.1)

# 【2】 不定长关键字参数 **kwargs
# def info2(**kwargs):
#     print(kwargs)
# info2(name='张三',age=19,address='辽宁沈阳')

# 【3】 默认参数
# def stu3(name: str, age: int, address: str = '沈阳'):
#     print(f"大家好，我叫做：{name}，今年：{age}岁，来自：{address}")
# stu3('张三',21)

# 【4】有默认参数、普通参数、不定长参数、不定长关键字参数
# def stu4(name: str, age: int, cls='qc4', *args, **kwargs):
#     print(name)
#     print(age)
#     print(cls)
#     print(args)
#     print(kwargs)

# 调用方法
# stu4('张三', 19, 'qc4', 11, 22, 33, 44, [11, 2, 333, 44], {"name": "suki"}, names='王五', ages=21)

# 【5】 指示参数传递
def stu5(name:str,age:int,sex:str,cls:str):
    print(f"大家好，我叫做：{name}，今年：{age}岁，性别位：{sex}，在：{cls}学习中！")

# 调用函数
# stu5(cls='qc5',sex='女',age=20,name='张三')
# stu5('张三',20,'男','qc5')

# ============================有形参，有返回值===========================






















